package com.Poker.Group;

import com.Poker.Poker;

import java.util.List;
import java.util.Map;

/**
 * Created by mike on 18/5/23.
 */
public class SameTypeGroupFilter extends BaseGroupFilter {
    public SameTypeGroupFilter(List<Poker> pokers) {
        super(pokers);
    }

    @Override
    protected boolean filterHandler() {
        Map<Poker.TYPE_ENUM, Integer> grouTypeMap = this.groupType(pokers);
        if(grouTypeMap.size()==1){
            return true;
        }
        return false;
    }
}
